package com.zhentao.market;

import com.zhentao.model.pojo.user.ChargeUser;

/**
 * @ClassName: ChargeUserThreadUtils
 * @Author: 振涛教育_Q
 * @Date: 2024/12/17 11:22
 */
public class ChargeMarketThreadUtils {
    private final static ThreadLocal<ChargeUser> CHARGE_USER_THREAD_LOCAL = new ThreadLocal<>();

    // set
    public static void setChargeUserThreadLocal(ChargeUser wmUser){
        CHARGE_USER_THREAD_LOCAL.set(wmUser);
    }

    // get
    public static ChargeUser getChargeUserThreadLocal(){
        return CHARGE_USER_THREAD_LOCAL.get();
    }

    // clear
    public static void clearChargeUserThreadLocal(){
        CHARGE_USER_THREAD_LOCAL.remove();
    }
}
